#coding=utf-8
import arcpy
import json

arcpy.env.overwriteOutput = True
spatial_ref = arcpy.SpatialReference(4326)
with open((r'D:\ArcPy\demoData\a.json'), 'rb') as file:
    content = file.read()
data = json.loads(content)

coordsList_Top = json.loads(data['data']['geometry'])['coordinates']
ArcpyPolyline_List = []
ArcpyPoint_List = [arcpy.Point(*coords) for coords in coordsList_Top]
ArcpyArray_List = arcpy.Array(ArcpyPoint_List)
ArcpyPolyline = arcpy.Polyline(ArcpyArray_List, spatial_ref)
ArcpyPolyline_List.append([ArcpyPolyline])
c_polyline = arcpy.CreateFeatureclass_management(r'D:\ArcPy\demoData','a.shp', 'POLYLINE',spatial_reference=spatial_ref)
cs = arcpy.da.InsertCursor(c_polyline, ['SHAPE@'])
for ArcpyPolyline in ArcpyPolyline_List:
    cs.insertRow(ArcpyPolyline)
del cs
